package com.lekang.le.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lekang.le.mapper.CaregiverBedBindingMapper;
import com.lekang.le.domain.CaregiverBedBinding;
import com.lekang.le.service.ICaregiverBedBindingService;

/**
 * 护理员与床位中间Service业务层处理
 * 
 * @author szh
 * @date 2025-10-20
 */
@Service
public class CaregiverBedBindingServiceImpl implements ICaregiverBedBindingService 
{
    @Autowired
    private CaregiverBedBindingMapper caregiverBedBindingMapper;

    /**
     * 查询护理员与床位中间
     * 
     * @param id 护理员与床位中间主键
     * @return 护理员与床位中间
     */
    @Override
    public CaregiverBedBinding selectCaregiverBedBindingById(Long id)
    {
        return caregiverBedBindingMapper.selectCaregiverBedBindingById(id);
    }

    /**
     * 查询护理员与床位中间列表
     * 
     * @param caregiverBedBinding 护理员与床位中间
     * @return 护理员与床位中间
     */
    @Override
    public List<CaregiverBedBinding> selectCaregiverBedBindingList(CaregiverBedBinding caregiverBedBinding)
    {
        return caregiverBedBindingMapper.selectCaregiverBedBindingList(caregiverBedBinding);
    }

    /**
     * 新增护理员与床位中间
     * 
     * @param caregiverBedBinding 护理员与床位中间
     * @return 结果
     */
    @Override
    public int insertCaregiverBedBinding(CaregiverBedBinding caregiverBedBinding)
    {
        return caregiverBedBindingMapper.insertCaregiverBedBinding(caregiverBedBinding);
    }

    /**
     * 修改护理员与床位中间
     * 
     * @param caregiverBedBinding 护理员与床位中间
     * @return 结果
     */
    @Override
    public int updateCaregiverBedBinding(CaregiverBedBinding caregiverBedBinding)
    {
        return caregiverBedBindingMapper.updateCaregiverBedBinding(caregiverBedBinding);
    }

    /**
     * 批量删除护理员与床位中间
     * 
     * @param ids 需要删除的护理员与床位中间主键
     * @return 结果
     */
    @Override
    public int deleteCaregiverBedBindingByIds(Long[] ids)
    {
        return caregiverBedBindingMapper.deleteCaregiverBedBindingByIds(ids);
    }

    /**
     * 删除护理员与床位中间信息
     * 
     * @param id 护理员与床位中间主键
     * @return 结果
     */
    @Override
    public int deleteCaregiverBedBindingById(Long id)
    {
        return caregiverBedBindingMapper.deleteCaregiverBedBindingById(id);
    }
}
